#include "junix.h"
using namespace std;

struct A {
	void f() {
		cout<<"delete this"<<endl;
		delete this;
		cout<<"not seen"<<endl;
	}
};

int main(int argc, char **argv)
{
	A *pa = new A;
	cout<<pa<<endl;
	pa->f();
	A a;
	cout<<pa<<endl;
//	a.f();
	//pa->f();
	//
	assert( pa == NULL);
}
